//
//  ViewController.m
//  UI06_homework1
//
//  Created by aaaaaa on 16/6/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "CustomUIView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self createView];
    
}

- (void)createView{
    CustomUIView *customView = [[CustomUIView alloc] initWithFrame:CGRectMake(0, 0, 300, 500)];
    customView.center = self.view.center;
    
    UIImage *image1 = [UIImage imageNamed:@"cymbal_00.jpg"];
    UIImage *image2 = [UIImage imageNamed:@"cymbal_01.jpg"];
    UIImage *image3 = [UIImage imageNamed:@"cymbal_02.jpg"];
    customView.imageArray = @[image1, image2, image3];
    
    [self.view addSubview:customView];
    [customView release];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
